{% extends "bootstrap/base.html" %}

{% block head %}
{{ super() }}
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }} type="image/x-icon">
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
{% endblock %}

{% block title %}Flasky{% endblock title %}

{% block navbar %}
<div class="navbar navbar-inverse">
	<div class="container">
		<div class="navbar-header">
			<button class="navbar-toggle" style="button" data-toggle="collapse" data-target=".navbar-collapse">
				<span class="sr-only">Toogle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="/"></a>
		</div>
		<div class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li><a href="/">INDEX</a></li>
				<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown">Package
                                     <b class="caret"></b> </a>
                                    <ul class="dropdown-menu">
                                       {% for item in dirs %}
                                           <li><a href="/package/{{ item }}">{{ item }}</a></li>
                                       {% endfor %}
                                    </ul>
                                </li>
                                <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown">Symbols
                                     <b class="caret"></b> </a>
                                    <ul class="dropdown-menu">
                                       {% for item in dirs %}
                                          <li><a href="/package/{{ item }}/symbols">{{ item }}</a></li>
                                       {% endfor %}
                                    </ul>
                                </li>
                               <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown">Bugly_json
                                     <b class="caret"></b> </a>
                                    <ul class="dropdown-menu">
                                       {% for item in dirs %}
                                           <li><a href="/package/bugly_json/{{ item }}">{{ item }}</a></li>
                                       {% endfor %}
                                    </ul>
                                </li>
                                <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown">PPT
                                      <b class="caret"></b></a>
                                      <ul class="dropdown-menu">        
                                          <li><a href="/ppt/upload">Upload</a></li>
                                      </ul>   
                                </li>
                                <li><a href="http://bbs.baina.com">BBS</a></li>
                                <li><a href="http://p.baina.com">Redmine</a></li> 
				{% block navbar_list %}{% endblock navbar_list %}
			</ul>
		</div>
	</div>
</div>
{% endblock navbar %}

{% block content %}
<div class="container">
	{% block page_content %}{% endblock page_content %}
</div>
{% endblock content %}

{% block scripts %}
{{ super() }}
{{ moment.include_moment(local_js=url_for('static', filename='moment-with-locales.min.js')) }}
{{ moment.lang("zh_cn") }}
{%- endblock scripts %}
